﻿using Zhp.Entity.Workflow;
using Zhp.IService.Base;
using Zhp.Model.Workflow;
using Zhp.Workflow.Models;

namespace Zhp.IService.Workflow.Example
{
    public interface IWorkflowExampleService : IBaseService<WorkflowExample>
    {
        public Task<List<WorkflowExampleModel>> Query(WorkflowExampleQuery query);
        public Task<List<ApproveTimeLine>> GetTimeLine(long ientityId);
        public Task<List<WorkflowEnumModel>> GetApproveStatusSelect();
        public Task<List<WorkflowEnumModel>> GetWorkflowStatusSelect();
        public Task<List<string>> QueryFlowNameSelect();
        public Task<bool> Create(WorkflowExampleEdit p);
        public Task<bool> Update(WorkflowExampleEdit p);
        public Task<bool> Submit(long entityId, string flowName);
        public Task<bool> Cancel(long entityId);
        public Task<bool> Delete(long entityId);
        public Task<bool> Approve(BaseApproveInfo approve);
    }
}
